package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 金华市报名录取专库同步情况表
 *
 * @author zhiyuan
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_sync_jh_enroll")
@Schema(name = "EduSyncJhEnroll", title = "金华市报名录取专库同步情况表", description = "金华市报名录取专库同步情况表实体类")
public class EduSyncJhEnroll extends Model<EduSyncJhEnroll> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "jhEnrollId", description = "金华市报名录取专库id")
    @TableId(value = "jh_enroll_id", type = IdType.ASSIGN_ID)
    private Long jhEnrollId;

    @Schema(name = "jhApplyId", description = "金华市报名专库id")
    @TableField(value = "jh_apply_id")
    private Long jhApplyId;

    @Schema(name = "importBatchId", description = "导入批次id")
    @TableField(value = "import_batch_id")
    private Long importBatchId;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "schoolCategory", description = "学段：1:幼儿园 2：小学 3：初中")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "cardType", description = "证件类型：01：身份证 02：护照03：台胞证04：台湾居民来往大陆通行证 05：港澳居民往来内地通行证 06:外国人永久居留身份证  99：其他证件")
    @TableField(value = "card_type")
    private String cardType;

    @Schema(name = "name", description = "姓名")
    @TableField(value = "name")
    private String name;

    @Schema(name = "idcard", description = "证件号码")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "enrollState", description = "录取状态:1 录取 2 不录取")
    @TableField(value = "enroll_state")
    private String enrollState;

    @Schema(name = "enrollHuman", description = "录取人")
    @TableField(value = "enroll_human")
    private String enrollHuman;

    @Schema(name = "enrollTime", description = "录取时间")
    @TableField(value = "enroll_time")
    private Date enrollTime;

    @Schema(name = "enrollOpinion", description = "录取意见")
    @TableField(value = "enroll_opinion")
    private String enrollOpinion;

    @Schema(name = "enrollSchoolName", description = "录取学校")
    @TableField(value = "enroll_school_name")
    private String enrollSchoolName;

    @Schema(name = "enrollSchoolCode", description = "录取学校代码")
    @TableField(value = "enroll_school_code")
    private String enrollSchoolCode;

    @Schema(name = "enrollClass", description = "录取班级")
    @TableField(value = "enroll_class")
    private String enrollClass;

    @Schema(name = "entranceType", description = "入学方式")
    @TableField(value = "entrance_type")
    private String entranceType;

    @Schema(name = "applyCountyCode", description = "报名所在区县码")
    @TableField(value = "apply_county_code")
    private String applyCountyCode;

    @Schema(name = "applyCountyName", description = "报名所在区县名")
    @TableField(value = "apply_county_name")
    private String applyCountyName;

    @Schema(name = "del", description = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del_uk", title = "逻辑删除ID")
    @TableField(value = "del_uk", updateStrategy = FieldStrategy.NOT_NULL)
    private String delUk;

    @Override
    public Serializable pkVal() {
        return this.jhEnrollId;
    }
}
